home *** CD-ROM | disk | FTP | other *** search
/ Super PC 33 / Super PC 33 (Shareware).iso / spc / sonido / timidity / source / controls.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-03  |  1.5 KB  |  60 lines

  1. /* 
  2.  
  3.     TiMidity -- Experimental MIDI to WAVE converter
  4.     Copyright (C) 1995 Tuukka Toivonen <titoivon@snakemail.hut.fi>
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20.    controls.c
  21.    
  22.    */
  23.  
  24. #include "config.h"
  25. #include "controls.h"
  26.  
  27. #ifdef IA_SLANG
  28. extern ControlMode slang_control_mode;
  29. #endif
  30. #ifdef IA_NCURSES
  31. extern ControlMode ncurses_control_mode;
  32. #endif
  33.  
  34. #ifdef IA_SLANG
  35. #define DEFAULT_CONTROL_MODE &slang_control_mode
  36. #else
  37. # ifdef IA_NCURSES
  38. # define DEFAULT_CONTROL_MODE &ncurses_control_mode
  39. # endif /* IA_NCURSES */
  40. #endif /* IA_SLANG */
  41.  
  42. extern ControlMode dumb_control_mode;
  43.  
  44. ControlMode *ctl_list[]={
  45. #ifdef IA_NCURSES
  46.   &ncurses_control_mode,
  47. #endif
  48. #ifdef IA_SLANG
  49.   &slang_control_mode,
  50. #endif
  51.   &dumb_control_mode,
  52.   0
  53. };
  54.  
  55. #ifndef DEFAULT_CONTROL_MODE
  56. #define DEFAULT_CONTROL_MODE &dumb_control_mode
  57. #endif
  58.  
  59. ControlMode *ctl=DEFAULT_CONTROL_MODE;
  60.